<template>
  <div class="student">
      <h2>我是Student组件</h2>
      <ul>
          <li>学生姓名: {{name}}</li>
          <li>学生年龄: {{age}}</li>
      </ul>
      <ul>
          <li>消息: {{msg}}</li>
          <li>金钱: {{money}}</li>
          <li>车名: {{car.name}}</li>
          <li>车价: {{car.price}}</li>
          <li>车龄: {{car.age}}</li>
      </ul>
  </div>
</template>

<script>
    export default {
        name: 'Student',
        props: ['msg','money','car'],
        data(){
            return{
                name: 'zhangsan',
                age: 18
            }
        }
    }
</script>

<style>
    .student{
        background: pink;
        padding: 20px;
    }
</style>